package blue.txt;

import java.io.File;

import blue.txt.handle.ChapterContentParser;
import blue.txt.handle.FileHandler;
import blue.txt.handle.TextContentParser;
import blue.txt.handle.TxtFileHandler;

public class TxtMain
{
	public TxtMain()
	{
	}
	
	public static void main(String[] args)
	{
		ChapterContentParser chapterParser = new ChapterContentParser();
		TextContentParser contentParser = new TextContentParser();
		
		FileHandler handler = new TxtFileHandler();
		handler.setChapterParser(chapterParser);
		handler.setContentParser(contentParser);
		
		File file = new File("D:/Document/txt/苏婷的放荡生活.txt");
		
		handler.handle(file, "D:/Document/txt/苏婷的放荡生活");
		
	}
	
}
